home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / WIN_PRO / WTEK0593.ZIP;1 / EDIT-CPP.ZIP / EDITOVW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-07  |  1.4 KB  |  52 lines

  1. // editovw.h : interface of the CEditorView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CEditorView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CEditorView();
  9.     DECLARE_DYNCREATE(CEditorView)
  10.  
  11. // Attributes
  12. public:
  13.     CEditorDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Implementation
  19. public:
  20.     virtual ~CEditorView();
  21.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  22. #ifdef _DEBUG
  23.     virtual void AssertValid() const;
  24.     virtual void Dump(CDumpContext& dc) const;
  25. #endif
  26.  
  27.     // Printing support
  28. protected:
  29.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  30.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  31.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  32.  
  33.     // OLE Client support
  34.     virtual BOOL IsSelected(const CObject* pDocItem) const;
  35.  
  36. // Generated message map functions
  37. protected:
  38.     //{{AFX_MSG(CEditorView)
  39.         // NOTE - the ClassWizard will add and remove member functions here.
  40.         //    DO NOT EDIT what you see in these blocks of generated code !
  41.     afx_msg void OnInsertObject();    // OLE support
  42.     //}}AFX_MSG
  43.     DECLARE_MESSAGE_MAP()
  44. };
  45.  
  46. #ifndef _DEBUG    // debug version in editovw.cpp
  47. inline CEditorDoc* CEditorView::GetDocument()
  48.    { return (CEditorDoc*) m_pDocument; }
  49. #endif
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52.